/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Report.XML;

import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import javax.xml.parsers.ParserConfigurationException;
import net.sf.jasperreports.engine.JRException;
import org.xml.sax.SAXException;

/**
 *
 * @author Jaime Junior
 */
public class Teste {

    public static void main (String arg[]) throws JRException, ClassNotFoundException, SQLException, ParserConfigurationException, SAXException, IOException{
                Relatorio relatorio = new Relatorio ();
                relatorio.geraJrprint("C:\\Caminhao");
                relatorio.geraRelatorioPDF("C:\\Caminhao");
                java.awt.Desktop desktop = java.awt.Desktop.getDesktop();
                desktop.open(new File("C:\\Caminhao.pdf"));//return null means stay on the same page
    
    }
}
